package com.foxitcloud.webpdf.calldll;

import org.apache.log4j.Logger;

public class FormMgrHelper {
	private volatile  static FXPDFFormMgr formMgr = null;
	private static Logger log = Logger.getLogger(FormMgrHelper.class);

	public static FXPDFFormMgr getPdfFormMgr(String fontPath)
	{		
		if (formMgr == null) { 
		      synchronized (FXPDFFormMgr.class) { 
		        if(formMgr == null) { 
		        	log.info("PDFFormMgr initialize.");
		        	formMgr = new FXPDFFormMgr(fontPath); 
		        } 
		      } 
	    } 	
		return formMgr;
	}
	
	private FormMgrHelper() {
		
	}
}
